package cn.ht.bootdemo.common.enums;

import lombok.Getter;

/**
 * 状态枚举,定义相应的状态
 * 
 */
@Getter
public enum ResponseStatusEnum {

    SUCCESS(0, "成功"),
    UNKNOWN_ERROR(1, "服务错误"),
    NO_PERMISSION(2, "无访问权限"),
    INVALID_PARAMETER(3, "请求参数无效"),
    NULL_PARAMETER(4, "请求参数为空");


    private Integer status;
    private String message;

    ResponseStatusEnum(Integer status, String text) {
        this.status = status;
        this.message = text;
    }
}
